<template>
    <IContent v-model="componentProps">
        <ISearch v-model="search">
            <FormItem :label-width="1">
                <ButtonGroup>
                    <Button type="primary" icon="ios-search" size="small" @click="getLists(1)">搜索</Button>
                    <Button type="success" icon="ios-add" size="small" @click="openComponent(`ICreate`)">添加</Button>
                </ButtonGroup>
            </FormItem>
        </ISearch>
        <ITable :current="page.current" :table="table" :total="page.total" @on-page-change="pageChange"
                :loading="loading"></ITable>
    </IContent>
</template>

<script>
    import IContent from "../../../../components/layout/IContent";
    import IContentMixins from "../../../../mixins/iContentMixins";
    import ISearch from "../../../../components/layout/ISearch";
    import ITable from "../../../../components/layout/ITable";
    export default {
        name: "index",
        components: {ITable, ISearch, IContent},
        mixins: [IContentMixins]
    }
</script>

<style scoped>

</style>